package com.tianci.appstore.ui.data;

import android.graphics.drawable.Drawable;

import com.tianci.appstore.ui.data.SkyAppDetailData.AppStatus;

public class APKData extends SkyListStatusData {
    private String path = "";
    private String size = "";
    private Drawable icon = null;

    static int count = 0;

    public APKData(String title, String path, String showInfo, Drawable icon) {
        super(ListType.APK_SCAN_LIST);
        this.title = title;
        this.path = path;
        this.showInfo = showInfo;
        this.icon = icon;

        if (count % 3 == 0)
            this.versionName = "1.0.0." + count;
        if (count % 5 == 0)
            this.setStatus(AppStatus.INSTALLED);
        count++;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }


}
